<template>
	<view class="container">
		<view class="search-area">
			<view class="uni-input">
				<input  placeholder="输入搜索内容" />
			</view>
			<view style="height: 50upx;width: 2upx;background-color: #aaa;margin-right: 20upx;"></view>
			<view class="btn-search">
				<text>搜索</text>
			</view>
			
		</view>
		<view class="main">
			<view class="card-item" @click="onClick">
				<view class="title">这是标题</view>
				<view class="author">这是作者</view>
				<view class="content">内容</view>
				<view class="tool">100赞同</view>
			</view> 
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
			}
		},
		methods: {
			onClick(){
				uni.navigateTo({
					url:"/pages/cardDetail/cardDetail"
				})
			}

		}
	}
</script>

<style>
	.container {
		font-size: 14px;
		line-height: 24px;
	}
	.main{
		background-color: #ffffff;
	}
	.search-area{
		border: 1px solid #aaa;
		height: 50upx;
		background-color: white;
		align-items: center;
		border-radius: 30upx;
		display: flex;
		padding: 10upx;
		margin: 20upx;
	}
	.search-area .uni-input{
		flex: 1;
	}
	.search-area .btn-search{
		width: 80upx;
	}
	.card-item{
		border-bottom: 1upx solid #ccc;
	}
</style>
